支持动画效果的点标注
More...
#import <MAAnimatedAnnotation.h>
◆ addMoveAnimationWithKeyCoordinates:count:withDuration:withName:completeCallback:
- (MAAnnotationMoveAnimation *) addMoveAnimationWithKeyCoordinates: |
|
(CLLocationCoordinate2D *) |
coordinates |
count: |
|
(NSUInteger) |
count |
withDuration: |
|
(CGFloat) |
duration |
withName: |
|
(NSString *) |
name |
completeCallback: |
|
(void(^)(BOOL isFinished)) |
completeCallback |
|
|
| |
添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点.
- Parameters
-
coordinates | c数组,由调用者负责coordinates指向内存的管理 |
count | coordinates数组大小 |
duration | 动画时长,0或<0为无动画 |
name | 名字,如不指定可传nil |
completeCallback | 动画完成回调,isFinished: 动画是否执行完成 |
◆ addMoveAnimationWithKeyCoordinates:count:withDuration:withName:completeCallback:stepCallback:
- (MAAnnotationMoveAnimation *) addMoveAnimationWithKeyCoordinates: |
|
(CLLocationCoordinate2D *) |
coordinates |
count: |
|
(NSUInteger) |
count |
withDuration: |
|
(CGFloat) |
duration |
withName: |
|
(NSString *) |
name |
completeCallback: |
|
(void(^)(BOOL isFinished)) |
completeCallback |
stepCallback: |
|
(void(^)(MAAnnotationMoveAnimation *currentAni)) |
stepCallback |
|
|
| |
添加移动动画, 第一个添加的动画以当前coordinate为起始点,沿传入的coordinates点移动,否则以上一个动画终点为起始点.
- Parameters
-
coordinates | c数组,由调用者负责coordinates指向内存的管理 |
count | coordinates数组大小 |
duration | 动画时长,0或<0为无动画 |
name | 名字,如不指定可传nil |
completeCallback | 动画完成回调,isFinished: 动画是否执行完成 |
stepCallback | 动画每一帧回调 |
◆ allMoveAnimations
◆ setNeedsStart
◆ movingDirection
- (CLLocationDirection) movingDirection |
|
readwritenonatomicassign |
The documentation for this class was generated from the following file: